package com.zego.wawaji.ui.store.order.bean;

import com.zego.wawaji.base.data.BaseData;

import org.json.JSONArray;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Su on 2018/1/17.
 */
public class OrderList extends BaseData {
    private List<Order> orderList = new ArrayList<>();

    @Override
    public void parseJson(String jsonStr) {
        JSONArray jsonArray = getJsonArray(jsonStr);
        this.orderList = (List<Order>) getBaseDataList(jsonArray, Order.class);
    }

    public List<Order> getOrderList() {
        return orderList;
    }
}
